include_directories($ENV{GFLAGS}/include)
link_directories($ENV{GFLAGS}/lib)

include_directories($ENV{GTEST}/googletest/include)
link_directories($ENV{GTEST}/lib)

add_executable(untar_test test.cpp)
target_include_directories(untar_test PUBLIC ${PHOTON_INCLUDE_DIR})
target_link_libraries(untar_test gtest gtest_main pthread photon_static
  tar_lib extfs_lib lsmt_lib)

add_test(
  NAME untar_test
  COMMAND ${EXECUTABLE_OUTPUT_PATH}/untar_test
)
